#include <stdio.h>
#include <unistd.h>

int main()
{
  int cnt = 5;

  pid_t id = fork();
  if (id == 0)
  {
    for (cnt = 100; cnt >= 0; cnt--)
    {
         printf("child: %d\n", cnt);
         sleep(7));
    } 
  }
  else
  {
     for (cnt; cnt >= 0; cnt--)
     { 
       printf("father: %d\n", cnt);

         sleep(7);
     }
  }
  return 0;
}
